/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: mirac
 * Date: 2025-04-15
 * Time: 23:43
 */
public class main {
    public static void main(String[] args) {
        //int 转换为 String
        int a = 10;
        int b = 20;
        String s1 = "hallo ";
        String s2 = "world!";
        //方法1：
        String s3 = a + "a";
        System.out.println(s3);
        System.out.println("============================");
        //方法2：
        String s4 = String.valueOf(b);
        System.out.println(s4);
        //System.out.println(a);
        //System.out.println(s1+s2);
       // System.out.println(a + b + s1);

        //将 String 转换为 int
        String s5 = "100";
        int c = Integer.valueOf(s5);
        System.out.println(c);
    }
}
